<?php 

class Event_ForeignCouponPreDelete extends Crud_Event_Handler
{
	protected $_type = 'preDelete';

	public function run($row) {
		ForeignCouponCodePeer::getInstance()->delete('coupon_id' , $row->getId());
		ForeignCoupon2productPeer::getInstance()->delete('coupon_id' , $row->getId());
	}

}
